#!/bin/bash

# 检查程序运行环境

apt update

# 相关依赖
apt install -y vim git cmake gcc g++ pkg-config build-essential
apt install -y libxcb*

# 安装FFmpeg
apt install -y ffmpeg libavcodec-dev libavformat-dev libavutil-dev libavdevice-dev libswscale-dev libavfilter-dev libswresample-dev

# 安装QT相关
# 安装Qt SDK 开发工具
apt install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
# 安装Qt Creator
apt install -y qtcreator
# 其它库，此处偷懒，全装上
apt install -y libqt5*dev
# 安装qml支持
apt install -y qtdeclarative5-dev
# 安装QT5
apt install -y qt5*
apt install -y libqt5multimedia*   qtmultimedia5-*

# 安装opencv
apt install -y libgtk2.0-dev libtiff-dev libavcodec-dev libavformat-dev libjpeg-dev libswscale-dev
apt install -y libopencv-dev
apt install -y libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev

# 安装openCL
apt-get install opencl-headers ocl-icd-opencl-dev